//------------------------------------------------------------------------------
//
//   Go4Flex 
//   Copyright 2010 
//   All rights reserved. 
//
//------------------------------------------------------------------------------

package com.demi.usercontrol.vo
{
	import flash.net.registerClassAlias;
	import flash.utils.getQualifiedClassName;

	import mx.utils.ObjectUtil;

	[RemoteClass(alias="com.demi.vo.UserVO")]
	[Bindable]
	public class UserVO
	{
		public var email:String;
		public var firstname:String;
		public var id:Number;
		public var lastname:String;
		public var login:String;
		public var password:String;
		public var groupId:String;
		[Transient]
		public var groupName:String;
		[Transient]
		public var permissions:Array;

		public function clone():UserVO
		{
			registerClassAlias(getQualifiedClassName(this), UserVO);
			return ObjectUtil.copy(this) as UserVO;
		}
	}
}